using System;
using System.Collections.Generic;
using System.ByteBuffer;
using tools;

namespace thirteen
{
    /// <summary>
    /// generate by msg tool
    /// 打枪信息
    /// </summary>
	public class ShootInfo : Dto
	{
		//玩家id
		public long shootId;
		//被打枪玩家id
		public long beShootId;
		//打枪赢取
		public int shootPoint;

        public ShootInfo() { }

        public ShootInfo(long shootId, long beShootId, int shootPoint)
        {
            this.shootId = shootId;
            this.beShootId = beShootId;
            this.shootPoint = shootPoint;
        }

        
		public void write(object obj)
		{
			ByteBuffer b = obj as ByteBuffer;
			b.PushLong(shootId);
			b.PushLong(beShootId);
			b.PushInt(shootPoint);
			
		}

	    public void read(object obj)
		{
		    MyConverter b = obj as MyConverter;
			shootId = b.toInt64();
			beShootId = b.toInt64();
			shootPoint = b.toInt32();
			
		}

	}
}